package com.kylin.core.authority.query.handler;

import com.kylin.core.merchant.query.handler.RealtimeOrderingTranslator;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * 权限相关数据查询
 * @author Damon S.
 * @version v1.0.1
 * @date 2019年11月19日 20:25
 */
@Component
@RequiredArgsConstructor
public class AuthorizationQueryHandler {

    private final RealtimeOrderingTranslator hdsOrderingTranslator;
//    private final RealtimeOrderingDataHandler hdsOrderingDataHandler;


//    @SuppressWarnings("unused")
//    @QueryHandler
//    private List<OrderTobeSettled> handle(QueryUnsettledOrderCommand command) {
//        // 数据查询操作
//        List<GalleryEntry> entries = hdsOrderingDataHandler.findOrdersUnsettled(
//                RealtimeOrderingDataHandler.UnsettledOrdersParams.builder()
//                        .paidAt(Timestamp.valueOf(LocalDateTime.now().plusMinutes(Constants.TIME_MINUS_HALF_AN_HOUR)))
//                        .maxOrderId(command.getMaxOrderId()).build());
//        // 数据格式转换
//        return hdsOrderingTranslator.translateToOrderTobeSettled(entries);
//    }
}
